package P4.T03;

import java.util.Comparator;

public class ModulusComporator implements Comparator<Complex> {
    @Override
    public int compare(Complex o1, Complex o2) {
        return (int) Math.signum(o1.getModulus()- o2.getModulus());
    }
}
